package com.adu.demo.service.Impl;

import java.util.List;
import com.adu.demo.domain.SysPermission;
import com.adu.demo.mapper.SysPermissionMapper;
import com.adu.demo.service.ISysPermissionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
                                            
@Service
public class SysPermissionService implements ISysPermissionService{
    @Autowired
    private SysPermissionMapper syspermissionMapper;

    @Override
    public List<SysPermission> getList(SysPermission syspermission){
        return syspermissionMapper.getList(syspermission);
    }
    @Override
    public SysPermission getById(Long id){
        return syspermissionMapper.getById(id);
    }
    @Override
    public int save(SysPermission syspermission){
        return syspermissionMapper.save(syspermission);
    }
    @Override
    public int deleteById(Long id){
        return syspermissionMapper.deleteById(id);
    }
    @Override
    public int deleteByIds(Long[] ids){
        return  syspermissionMapper.deleteByIds(ids);
    }
    @Override
    public int update(SysPermission syspermission){
        return syspermissionMapper.update(syspermission);
    }
}